// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
// DANGER! This is insecure. See http://twil.io/secure
const accountSid = 'AC31194fc1aa12d76ea8d2b2731fea7643';
const authToken = '7ec1ad47c9e838628be23fdbabc54609';
const client = require('twilio')(accountSid, authToken);

exports.sendSMS = function (mobile, body) {
    // return client.messages(mobile, callback);
client.messages
    .create({
        body: body,
        from: '+12012926076',
        to: mobile
    })
    .then(message => console.log(message.sid));
}
